module.exports = {
  devServer: {
    open: true,  //自动打开
    proxy: {
      "/apia": {
        ws: false,
        target: "http://admin.xingyaomei.com/api/",  //地址
        changeOrigin: true,
        withCredentials: true,
        pathRewrite: {
          "^/apia": "",
        },
      },
      "/api": {
        ws: false,
        target: "http://www.shuiyue.info:12600/",  //地址
        changeOrigin: true,
        withCredentials: true,
        pathRewrite: {
          "^/api": "",
        },
      }
    },
  },
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/'
};